package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2019/1/3.
 * Des:
 */
@Entity
@Table(name = "yd_world_status_info_t", schema = "jshoperxms", catalog = "")
public class YdWorldStatusInfoT {
    private String id;
    private int totalworldbiaoyang;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private int totalworldyuedu;
    private int totalworldleafs;
    private int totalworldshare;
    private int totalworldtrees;
    private int totalworldmembers;
    private int sunshine;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "TOTALWORLDBIAOYANG", nullable = false)
    public int getTotalworldbiaoyang() {
        return totalworldbiaoyang;
    }

    public void setTotalworldbiaoyang(int totalworldbiaoyang) {
        this.totalworldbiaoyang = totalworldbiaoyang;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "TOTALWORLDYUEDU", nullable = false)
    public int getTotalworldyuedu() {
        return totalworldyuedu;
    }

    public void setTotalworldyuedu(int totalworldyuedu) {
        this.totalworldyuedu = totalworldyuedu;
    }

    @Basic
    @Column(name = "TOTALWORLDLEAFS", nullable = false)
    public int getTotalworldleafs() {
        return totalworldleafs;
    }

    public void setTotalworldleafs(int totalworldleafs) {
        this.totalworldleafs = totalworldleafs;
    }

    @Basic
    @Column(name = "TOTALWORLDSHARE", nullable = false)
    public int getTotalworldshare() {
        return totalworldshare;
    }

    public void setTotalworldshare(int totalworldshare) {
        this.totalworldshare = totalworldshare;
    }

    @Basic
    @Column(name = "TOTALWORLDTREES", nullable = false)
    public int getTotalworldtrees() {
        return totalworldtrees;
    }

    public void setTotalworldtrees(int totalworldtrees) {
        this.totalworldtrees = totalworldtrees;
    }

    @Basic
    @Column(name = "TOTALWORLDMEMBERS", nullable = false)
    public int getTotalworldmembers() {
        return totalworldmembers;
    }

    public void setTotalworldmembers(int totalworldmembers) {
        this.totalworldmembers = totalworldmembers;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdWorldStatusInfoT that = (YdWorldStatusInfoT) o;

        if (totalworldbiaoyang != that.totalworldbiaoyang) return false;
        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (totalworldyuedu != that.totalworldyuedu) return false;
        if (totalworldleafs != that.totalworldleafs) return false;
        if (totalworldshare != that.totalworldshare) return false;
        if (totalworldtrees != that.totalworldtrees) return false;
        if (totalworldmembers != that.totalworldmembers) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + totalworldbiaoyang;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + totalworldyuedu;
        result = 31 * result + totalworldleafs;
        result = 31 * result + totalworldshare;
        result = 31 * result + totalworldtrees;
        result = 31 * result + totalworldmembers;
        return result;
    }

    @Basic
    @Column(name = "SUNSHINE", nullable = false)
    public int getSunshine() {
        return sunshine;
    }

    public void setSunshine(int sunshine) {
        this.sunshine = sunshine;
    }
}
